import request from '@/utils/request'

// 查询申论题库管理列表
export function listSlquestion(query) {
  return request({
    url: '/business/slquestion/list',
    method: 'get',
    params: query
  })
}

// 查询所有申论题库管理列表
export function allSlquestions(query) {
  return request({
    url: '/business/slquestion/all/slquestions',
    method: 'get',
    params: query
  })
}

export function selectQuestionRandomList(query) {
  return request({
    url: '/business/slquestion/selectQuestionRandomList',
    method: 'get',
    params: query
  })
}

// 查询申论题库管理详细
export function getSlquestion(id) {
  return request({
    url: '/business/slquestion/' + id,
    method: 'get'
  })
}

// 新增申论题库管理
export function addSlquestion(data) {
  return request({
    url: '/business/slquestion',
    method: 'post',
    data: data
  })
}

// 修改申论题库管理
export function updateSlquestion(data) {
  return request({
    url: '/business/slquestion',
    method: 'put',
    data: data
  })
}

// 删除申论题库管理
export function delSlquestion(id) {
  return request({
    url: '/business/slquestion/' + id,
    method: 'delete'
  })
}
